package com.mall.mallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.common.utils.PageUtils;
import com.mall.mallproduct.entity.AttrEntity;
import com.mall.mallproduct.vo.AttrGroupRelationVO;
import com.mall.mallproduct.vo.AttrRespVO;
import com.mall.mallproduct.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zxc
 * @email zxc@gmail.com
 * @date 2020-08-13 10:33:58
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttrVO(AttrVO attrVO);

    PageUtils queryPageBaseAttrPage(Map<String, Object> params, Long catelogId, String sale);

    AttrRespVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attrVO);

    List<AttrEntity> getAttrRelation(Long attrGroupId);

    void delRelation(List<AttrGroupRelationVO> relationVO);

    PageUtils getnoAttrRelation(Map<String, Object> params, Long attrGroupId);

}

